<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>接口自动化测试报告</title>
    <meta name="generator" content="HTMLTestRunner 0.8.2.2"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
    
<style type="text/css" media="screen">
body        { font-family: Microsoft YaHei,Tahoma,arial,helvetica,sans-serif;padding: 20px; font-size: 120%; }
table       { font-size: 100%; }
/* -- heading ---------------------------------------------------------------------- */
.heading {
    margin-top: 0ex;
    margin-bottom: 1ex;
}
.heading .description {
    margin-top: 4ex;
    margin-bottom: 6ex;
}
/* -- report ------------------------------------------------------------------------ */
#total_row  { font-weight: bold; }
.passCase   { color: #5cb85c; }
.failCase   { color: #d9534f; font-weight: bold; }
.errorCase  { color: #f0ad4e; font-weight: bold; }
.hiddenRow  { display: none; }
.testcases   { margin-left: 2em; }
</style>

</head>
<body >
<script language="javascript" type="text/javascript">
output_list = Array();
/*level 调整增加只显示通过用例的分类 --Findyou
0:Summary //all hiddenRow
1:Failed  //pt hiddenRow, ft none
2:Pass    //pt none, ft hiddenRow
3:show_detail_line     //pt none, ft none
*/
function showCase(level) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        id = tr.id;
        if (id.substr(0,2) == 'ft') {
            if (level == 2 || level == 0 ) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
        if (id.substr(0,2) == 'pt') {
            if (level < 2) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
    }
    //加入【详细】切换文字变化 --Findyou
    detail_class=document.getElementsByClassName('detail');
	//console.log(detail_class.length)
	if (level == 3) {
		for (var i = 0; i < detail_class.length; i++){
			detail_class[i].innerHTML="收起"
		}
	}
	else{
			for (var i = 0; i < detail_class.length; i++){
			detail_class[i].innerHTML="详细"
		}
	}
}
function showClassDetail(cid, count) {
    var id_list = Array(count);
    var toHide = 1;
    for (var i = 0; i < count; i++) {
        //ID修改 点 为 下划线 -Findyou
        tid0 = 't' + cid.substr(1) + '_' + (i+1);
        tid = 'f' + tid0;
        tr = document.getElementById(tid);
        if (!tr) {
            tid = 'p' + tid0;
            tr = document.getElementById(tid);
        }
        id_list[i] = tid;
        if (tr.className) {
            toHide = 0;
        }
    }
    for (var i = 0; i < count; i++) {
        tid = id_list[i];
        //修改点击无法收起的BUG，加入【详细】切换文字变化 --Findyou
        if (toHide) {
            document.getElementById(tid).className = 'hiddenRow';
            document.getElementById(cid).innerText = "详细"
        }
        else {
            document.getElementById(tid).className = '';
            document.getElementById(cid).innerText = "收起"
        }
    }
}
function html_escape(s) {
    s = s.replace(/&/g,'&amp;');
    s = s.replace(/</g,'&lt;');
    s = s.replace(/>/g,'&gt;');
    return s;
}
</script>
<div class='heading'>
<h1 style="font-family: Microsoft YaHei">接口自动化测试报告</h1>
<p class='attribute'><strong>测试人员 : </strong> HunWei</p>
<p class='attribute'><strong>开始时间 : </strong> 2022-06-08 14:29:57</p>
<p class='attribute'><strong>合计耗时 : </strong> 0:00:04.679938</p>
<p class='attribute'><strong>测试结果 : </strong> 共 4，通过 4，通过率= 100.00%</p>

<p class='description'>代替手动冒烟、手动回归，做更精准的测试</p>
</div>


<p id='show_detail_line'>
<a class="btn btn-primary" href='javascript:showCase(0)'>用例集{ 100.00% }</a>
<a class="btn btn-danger" href='javascript:showCase(1)'>失败{ 0 }</a>
<a class="btn btn-success" href='javascript:showCase(2)'>通过{ 4 }</a>
<a class="btn btn-info" href='javascript:showCase(3)'>所有{ 4 }</a>
</p>
<table id='result_table' class="table table-condensed table-bordered table-hover">
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row' class="text-center success" style="font-weight: bold;font-size: 16px;">
    <td calss="col-md-2">用例集/测试用例</td>
    <td calss="col-md-2">总计</td>
    <td calss="col-md-2">通过</td>
    <td calss="col-md-2">失败</td>
    <td calss="col-md-2">错误</td>
    <td calss="col-md-2">详细</td>
</tr>

<tr class='passClass warning'>
    <td>用例集:[test_jyjApi.xlsx--案例]</td>
    <td class="text-center">4</td>
    <td class="text-center">4</td>
    <td class="text-center">0</td>
    <td class="text-center">0</td>
    <td class="text-center"><a href="javascript:showClassDetail('c1',4)" class="detail" id='c1'>详细</a></td>
</tr>

<tr id='pt1_1' class='hiddenRow'>
    <td class='passCase'><div class='testcases'>test_audit_1: url</div></td>
    <td colspan='5' align='left'>
    <!--默认收起信息 -HunWei更新 -->
    <button id='btn_pt1_1' type="button"  class="btn btn-success btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_1'>通过</button>
    <div id='div_pt1_1' class="collapse" align="left">  
    <!-- 默认展开信息 -HunWei 更新 
    <button id='btn_pt1_1' type="button"  class="btn btn-success btn-xs" data-toggle="collapse" data-target='#div_pt1_1'>通过</button>
    <div id='div_pt1_1' class="collapse in" align="left"> -->
    <pre>
    
pt1_1:  已经设置变量[http://139.9.6.97:9571]==&gt;[${url}]

------------------------------------------------------------------

接口：【commfun】
类型：【设置变量】

------------------------------------------------------------------



    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_2' class='hiddenRow'>
    <td class='passCase'><div class='testcases'>test_audit_2: 登录</div></td>
    <td colspan='5' align='left'>
    <!--默认收起信息 -HunWei更新 -->
    <button id='btn_pt1_2' type="button"  class="btn btn-success btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_2'>通过</button>
    <div id='div_pt1_2' class="collapse" align="left">  
    <!-- 默认展开信息 -HunWei 更新 
    <button id='btn_pt1_2' type="button"  class="btn btn-success btn-xs" data-toggle="collapse" data-target='#div_pt1_2'>通过</button>
    <div id='div_pt1_2' class="collapse in" align="left"> -->
    <pre>
    
pt1_2: 用例[2]：[登录]执行通过. 
 校验结果：
结果:
【{
  "code": 20000,
  "data": {
    "token": "admin-token"
  },
  "msg": "登录成功"
}】
  包含有校验值:
  【登录成功】

------------------------------------------------------------------

接口：【s/login】
类型：【post】
参数：【{"username":"admin","password":"qwer1234"}】

------------------------------------------------------------------



    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_3' class='hiddenRow'>
    <td class='passCase'><div class='testcases'>test_audit_3: 班级查询</div></td>
    <td colspan='5' align='left'>
    <!--默认收起信息 -HunWei更新 -->
    <button id='btn_pt1_3' type="button"  class="btn btn-success btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_3'>通过</button>
    <div id='div_pt1_3' class="collapse" align="left">  
    <!-- 默认展开信息 -HunWei 更新 
    <button id='btn_pt1_3' type="button"  class="btn btn-success btn-xs" data-toggle="collapse" data-target='#div_pt1_3'>通过</button>
    <div id='div_pt1_3' class="collapse in" align="left"> -->
    <pre>
    
pt1_3: 用例[3]：[班级查询]执行通过. 
 校验结果：
结果:
【{
  "code": 20000,
  "data": {
    "class": [
      {
        "class_name": "123",
        "comments": "1231234",
        "create_time": "2022-04-22T15:03:38.987Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 1,
        "isdelete": 0,
        "updata_time": "2022-06-02T07:00:18.596Z",
        "updata_user": null
      },
      {
        "class_name": "二班",
        "comments": "二年级-二班",
        "create_time": "2022-04-22T15:49:54.862Z",
        "create_user": null,
        "grade_id": 2,
        "grade_name": "二年级",
        "id": 2,
        "isdelete": 0,
        "updata_time": "2022-04-22T15:49:54.862Z",
        "updata_user": null
      },
      {
        "class_name": "一班",
        "comments": "一年级（1）班，总40人",
        "create_time": "2022-05-17T12:33:33.546Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 3,
        "isdelete": 0,
        "updata_time": "2022-05-17T12:33:33.546Z",
        "updata_user": null
      },
      {
        "class_name": "二班",
        "comments": "一年级（2）班，人数99，未满100人",
        "create_time": "2022-05-17T12:42:45.232Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 5,
        "isdelete": 0,
        "updata_time": "2022-05-17T12:42:45.232Z",
        "updata_user": null
      },
      {
        "class_name": "三班",
        "comments": "一年级（3）班，人数100，已满100人",
        "create_time": "2022-05-17T12:42:45.247Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 6,
        "isdelete": 0,
        "updata_time": "2022-05-17T12:42:45.247Z",
        "updata_user": null
      },
      {
        "class_name": "四班",
        "comments": "一年级（4）班，人数70，未满100人",
        "create_time": "2022-05-17T12:42:45.262Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 7,
        "isdelete": 0,
        "updata_time": "2022-05-17T12:42:45.262Z",
        "updata_user": null
      },
      {
        "class_name": "一班",
        "comments": "一年级（1）班，人数40，未满100人",
        "create_time": "2022-05-17T13:17:36.697Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 8,
        "isdelete": 0,
        "updata_time": "2022-05-17T13:17:36.697Z",
        "updata_user": null
      },
      {
        "class_name": "二班",
        "comments": "一年级（2）班，人数99，未满100人",
        "create_time": "2022-05-17T13:17:36.712Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 9,
        "isdelete": 0,
        "updata_time": "2022-05-17T13:17:36.712Z",
        "updata_user": null
      },
      {
        "class_name": "三班",
        "comments": "一年级（3）班，人数100，已满100人",
        "create_time": "2022-05-17T13:17:36.726Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 10,
        "isdelete": 0,
        "updata_time": "2022-05-17T13:17:36.726Z",
        "updata_user": null
      },
      {
        "class_name": "四班",
        "comments": "一年级（4）班，人数70，未满100人",
        "create_time": "2022-05-17T13:17:36.746Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 11,
        "isdelete": 0,
        "updata_time": "2022-06-08T06:22:50.443Z",
        "updata_user": null
      },
      {
        "class_name": "一班",
        "comments": "一年级（1）班，人数40，未满100人",
        "create_time": "2022-06-02T07:00:18.514Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 12,
        "isdelete": 0,
        "updata_time": "2022-06-02T07:00:18.514Z",
        "updata_user": null
      },
      {
        "class_name": "二班",
        "comments": "一年级（2）班，人数99，未满100人",
        "create_time": "2022-06-02T07:00:18.529Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 13,
        "isdelete": 0,
        "updata_time": "2022-06-02T07:00:18.529Z",
        "updata_user": null
      },
      {
        "class_name": "三班",
        "comments": "一年级（3）班，人数100，已满100人",
        "create_time": "2022-06-02T07:00:18.548Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 14,
        "isdelete": 0,
        "updata_time": "2022-06-02T07:00:18.548Z",
        "updata_user": null
      },
      {
        "class_name": "四班",
        "comments": "一年级（4）班，人数70，未满100人",
        "create_time": "2022-06-02T07:00:18.569Z",
        "create_user": null,
        "grade_id": 1,
        "grade_name": "一年级",
        "id": 15,
        "isdelete": 0,
        "updata_time": "2022-06-02T07:00:18.569Z",
        "updata_user": null
      }
    ],
    "total": 14
  },
  "msg": "获取数据成功"
}】
  包含有校验值:
  【获取数据成功】

------------------------------------------------------------------

接口：【s/classlst】
类型：【get】
参数：【
page=1
limit=20
sort=%2Bid
】

------------------------------------------------------------------



    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_4' class='hiddenRow'>
    <td class='passCase'><div class='testcases'>test_audit_4: clsid</div></td>
    <td colspan='5' align='left'>
    <!--默认收起信息 -HunWei更新 -->
    <button id='btn_pt1_4' type="button"  class="btn btn-success btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_4'>通过</button>
    <div id='div_pt1_4' class="collapse" align="left">  
    <!-- 默认展开信息 -HunWei 更新 
    <button id='btn_pt1_4' type="button"  class="btn btn-success btn-xs" data-toggle="collapse" data-target='#div_pt1_4'>通过</button>
    <div id='div_pt1_4' class="collapse in" align="left"> -->
    <pre>
    
pt1_4: {"Content-Type": "application/json", "X-Frame-Options": "DENY", "Content-Length": "4629", "Vary": "Origin", "X-Content-Type-Options": "nosniff", "Referrer-Policy": "same-origin", "Cross-Origin-Opener-Policy": "same-origin", "code": 20000, "msg": "获取数据成功", "data": {"total": 14, "class": [{"id": 1, "class_name": "123", "comments": "1231234", "grade_id": 1, "isdelete": 0, "create_time": "2022-04-22T15:03:38.987Z", "create_user": null, "updata_time": "2022-06-02T07:00:18.596Z", "updata_user": null, "grade_name": "一年级"}, {"id": 2, "class_name": "二班", "comments": "二年级-二班", "grade_id": 2, "isdelete": 0, "create_time": "2022-04-22T15:49:54.862Z", "create_user": null, "updata_time": "2022-04-22T15:49:54.862Z", "updata_user": null, "grade_name": "二年级"}, {"id": 3, "class_name": "一班", "comments": "一年级（1）班，总40人", "grade_id": 1, "isdelete": 0, "create_time": "2022-05-17T12:33:33.546Z", "create_user": null, "updata_time": "2022-05-17T12:33:33.546Z", "updata_user": null, "grade_name": "一年级"}, {"id": 5, "class_name": "二班", "comments": "一年级（2）班，人数99，未满100人", "grade_id": 1, "isdelete": 0, "create_time": "2022-05-17T12:42:45.232Z", "create_user": null, "updata_time": "2022-05-17T12:42:45.232Z", "updata_user": null, "grade_name": "一年级"}, {"id": 6, "class_name": "三班", "comments": "一年级（3）班，人数100，已满100人", "grade_id": 1, "isdelete": 0, "create_time": "2022-05-17T12:42:45.247Z", "create_user": null, "updata_time": "2022-05-17T12:42:45.247Z", "updata_user": null, "grade_name": "一年级"}, {"id": 7, "class_name": "四班", "comments": "一年级（4）班，人数70，未满100人", "grade_id": 1, "isdelete": 0, "create_time": "2022-05-17T12:42:45.262Z", "create_user": null, "updata_time": "2022-05-17T12:42:45.262Z", "updata_user": null, "grade_name": "一年级"}, {"id": 8, "class_name": "一班", "comments": "一年级（1）班，人数40，未满100人", "grade_id": 1, "isdelete": 0, "create_time": "2022-05-17T13:17:36.697Z", "create_user": null, "updata_time": "2022-05-17T13:17:36.697Z", "updata_user": null, "grade_name": "一年级"}, {"id": 9, "class_name": "二班", "comments": "一年级（2）班，人数99，未满100人", "grade_id": 1, "isdelete": 0, "create_time": "2022-05-17T13:17:36.712Z", "create_user": null, "updata_time": "2022-05-17T13:17:36.712Z", "updata_user": null, "grade_name": "一年级"}, {"id": 10, "class_name": "三班", "comments": "一年级（3）班，人数100，已满100人", "grade_id": 1, "isdelete": 0, "create_time": "2022-05-17T13:17:36.726Z", "create_user": null, "updata_time": "2022-05-17T13:17:36.726Z", "updata_user": null, "grade_name": "一年级"}, {"id": 11, "class_name": "四班", "comments": "一年级（4）班，人数70，未满100人", "grade_id": 1, "isdelete": 0, "create_time": "2022-05-17T13:17:36.746Z", "create_user": null, "updata_time": "2022-06-08T06:22:50.443Z", "updata_user": null, "grade_name": "一年级"}, {"id": 12, "class_name": "一班", "comments": "一年级（1）班，人数40，未满100人", "grade_id": 1, "isdelete": 0, "create_time": "2022-06-02T07:00:18.514Z", "create_user": null, "updata_time": "2022-06-02T07:00:18.514Z", "updata_user": null, "grade_name": "一年级"}, {"id": 13, "class_name": "二班", "comments": "一年级（2）班，人数99，未满100人", "grade_id": 1, "isdelete": 0, "create_time": "2022-06-02T07:00:18.529Z", "create_user": null, "updata_time": "2022-06-02T07:00:18.529Z", "updata_user": null, "grade_name": "一年级"}, {"id": 14, "class_name": "三班", "comments": "一年级（3）班，人数100，已满100人", "grade_id": 1, "isdelete": 0, "create_time": "2022-06-02T07:00:18.548Z", "create_user": null, "updata_time": "2022-06-02T07:00:18.548Z", "updata_user": null, "grade_name": "一年级"}, {"id": 15, "class_name": "四班", "comments": "一年级（4）班，人数70，未满100人", "grade_id": 1, "isdelete": 0, "create_time": "2022-06-02T07:00:18.569Z", "create_user": null, "updata_time": "2022-06-02T07:00:18.569Z", "updata_user": null, "grade_name": "一年级"}]}}
 已经取得[1]==&gt;[${clsid}]

------------------------------------------------------------------

接口：【commfun】
类型：【字典取值】

------------------------------------------------------------------



    </pre>
    </div>
    </td>
</tr>

<tr id='total_row' class="text-center active">
    <td>总计</td>
    <td>4</td>
    <td>4</td>
    <td>0</td>
    <td>0</td>
    <td>通过率：100.00%</td>
</tr>
</table>

<div id='ending'>&nbsp;</div>
    <div style=" position:fixed;right:50px; bottom:30px; width:20px; height:20px;cursor:pointer">
    <a href="#"><span class="glyphicon glyphicon-eject" style = "font-size:30px;" aria-hidden="true">
    </span></a></div>
    
</body>
</html>
